home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / omswitch.zip / SWITCH.C < prev    next >
Text File  |  1988-09-02  |  394b  |  20 lines

  1.     /*
  2.     **    Display/change switch character
  3.     */
  4. char switchar();
  5.  
  6. main(argc,argv)
  7. int argc;
  8. char *argv[];    {
  9.     register char c;
  10.  
  11.     if(argc<2)
  12.         printf("Switch character is now '%c'\n",switchar(0));
  13.     else if((c=*argv[1])<=' ')
  14.         printf("Illegal new switch character '%c'\n",c);
  15.     else    {
  16.         printf("Switch character was '%c', ",switchar(0));
  17.         printf("is now '%c'\n",switchar(c));
  18.     }
  19. }
  20.